<template>
    <div>这是首页
        <el-button type="primary" plain @click="test" size="mini">test测试</el-button>
    </div>
</template>

<script>
    import Service from '../../common/Service'

    export default {
        name: "MainPage",
        methods: {
            test() {
                // 前端跨域测试 http-proxy,js
                Service.base.test().then(data => {
                    console.log(data)
                })
            }
        }
    }
</script>

<style scoped>

</style>